Next | Prev | Up | Top | Contents | Index
Editing and Querying Texture Objects
Once a texture object has been created, you can change its images and parameters at any time. You edit a texture object the same way you define it: you bind the texture object to a target and then call glTexImage*() or glTexParameter*(). These commands take a texture target as an argument, and they affect the texture object that is currently bound to that target. Similarly, you can query the parameters and images of a texture by calling glGetTexParameter*(), glGetTexLevelParameter*(), and glGetTexImage(), which also operate on the currently bound texture.
To find out which texture object is currently bound to each texture target, call glGetIntegerv() with GL_TEXTURE_1D_BINDING_EXT, GL_TEXTURE_2D_BINDING_EXT, or GL_TEXTURE_3D_BINDING_EXT (if your system supports 3D textures).
Next | Prev | Up | Top | Contents | Index